package net.oschina.dajiangnan.wx.process.pay.xmlbean;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import net.oschina.dajiangnan.util.XStreamHelper;

@XStreamAlias("xml")
public class PayNotifyReq extends XmlBean{

    /**
     *  <xml><appid><![CDATA[wx2e02e746d17d6b15]]></appid>
<attach><![CDATA[1221]></attach>
<bank_type><![CDATA[CFT]]></bank_type>
<cash_fee><![CDATA[1]]></cash_fee>
<device_info><![CDATA[WEB]]></device_info>
<fee_type><![CDATA[CNY]]></fee_type>
<is_subscribe><![CDATA[Y]]></is_subscribe>
<mch_id><![CDATA[1250643401]]></mch_id>
<nonce_str><![CDATA[P9MF3JwR1wvE3sGhbKVSjQ8gmP4ukIC0]]></nonce_str>
<openid><![CDATA[oL570s51GOD8RjhxmJ8f0sgFk_5E]]></openid>
<out_trade_no><![CDATA[1444643122wLnvA4kB9p01UW9n2bQCpt]]></out_trade_no>
<result_code><![CDATA[SUCCESS]]></result_code>
<return_code><![CDATA[SUCCESS]]></return_code>
<sign><![CDATA[E797E8D4A5CA7FD5BAE11A986BEB4D08]]></sign>
<time_end><![CDATA[20151012174530]]></time_end>
<total_fee>1</total_fee>
<trade_type><![CDATA[NATIVE]]></trade_type>
<transaction_id><![CDATA[1009090759201510121173228049]]></transaction_id>
</xml>

     */
    
    
    
    public static void main(String [] args){
        String xml = "<xml>"+
        "<sign>0B51C0CF89A571AAFD0F6CA6972BD435</sign>"+
        "<return_code>SUCCESS</return_code>"+
        "<appid>wxf1aace32b27f457c</appid>"+
        "<mch_id>1242696902</mch_id>"+
        "<device_info>WEB</device_info>"+
        "<nonce_str>b0J83arfqGXv7zllVruyOzxYWKB8i8BA</nonce_str>"+
        "<result_code>SUCCESS</result_code>"+
        "<openid>obeY5uJRoxM6O73tMSN0HwSopnJw</openid>"+
        "<is_subscribe>Y</is_subscribe>"+
        "<trade_type>NATIVE</trade_type>"+
        "<bank_type>CFT</bank_type>"+
        "<total_fee>1</total_fee>"+
        "<fee_type>CNY</fee_type>"+
        "<cash_fee>1</cash_fee>"+
        "<coupon_count>0</coupon_count>"+
        "<coupon_fee_0>0</coupon_fee_0>"+
        "<transaction_id>1009090158201510161217501727</transaction_id>"+
        "<out_trade_no>1444974551V0NmN8wotSzzwCxU401Asd</out_trade_no>"+
        "<time_end>20151016134929</time_end>"+
      "</xml>";
        
        PayNotifyReq payNotifyReq = XStreamHelper.toBean(xml, PayNotifyReq.class);
        System.out.println(payNotifyReq.islegalSign("123abcdefghiJKLMNOPQRstuvmsyz456"));
    }
    
    
    
    
    @XStreamAlias("return_code")
    private String return_code;
    
    @XStreamAlias("return_msg")
    private String return_msg;
    
    @XStreamAlias("appid")
    private String appid;
    
    @XStreamAlias("mch_id")
    private String mch_id;
    
    @XStreamAlias("device_info")
    private String device_info;
    
    @XStreamAlias("nonce_str")
    private String nonce_str;
    
    @XStreamAlias("result_code")
    private String result_code;
    
    @XStreamAlias("err_code")
    private String err_code;
    
    @XStreamAlias("err_code_des")
    private String err_code_des;
    
    @XStreamAlias("openid")
    private String openid;
    
    @XStreamAlias("is_subscribe")
    private String is_subscribe;
    
    @XStreamAlias("trade_type")
    private String trade_type;
    
    @XStreamAlias("bank_type")
    private String bank_type;
    
    @XStreamAlias("total_fee")
    private String total_fee;
    
    @XStreamAlias("fee_type")
    private String fee_type;
    
    @XStreamAlias("cash_fee")
    private String cash_fee;
    
    @XStreamAlias("cash_fee_type")
    private String cash_fee_type;
    
    @XStreamAlias("coupon_fee")
    private String coupon_fee;
    
    @XStreamAlias("coupon_count")
    private String coupon_count;
    
    @XStreamAlias("coupon_id_0")
    private String coupon_id_0;
    
    @XStreamAlias("coupon_fee_0")
    private String coupon_fee_0;
    
    @XStreamAlias("transaction_id")
    private String transaction_id;
    
    @XStreamAlias("out_trade_no")
    private String out_trade_no;
    
    @XStreamAlias("attach")
    private String attach;
    
    @XStreamAlias("time_end")
    private String time_end;

    
    public String getReturn_code() {
    
        return return_code;
    }

    
    public void setReturn_code(String return_code) {
    
        this.return_code = return_code;
    }

    
    public String getReturn_msg() {
    
        return return_msg;
    }

    
    public void setReturn_msg(String return_msg) {
    
        this.return_msg = return_msg;
    }

    
    public String getAppid() {
    
        return appid;
    }

    
    public void setAppid(String appid) {
    
        this.appid = appid;
    }

    
    public String getMch_id() {
    
        return mch_id;
    }

    
    public void setMch_id(String mch_id) {
    
        this.mch_id = mch_id;
    }

    
    public String getDevice_info() {
    
        return device_info;
    }

    
    public void setDevice_info(String device_info) {
    
        this.device_info = device_info;
    }

    
    public String getNonce_str() {
    
        return nonce_str;
    }

    
    public void setNonce_str(String nonce_str) {
    
        this.nonce_str = nonce_str;
    }

    
    public String getResult_code() {
    
        return result_code;
    }

    
    public void setResult_code(String result_code) {
    
        this.result_code = result_code;
    }

    
    public String getErr_code() {
    
        return err_code;
    }

    
    public void setErr_code(String err_code) {
    
        this.err_code = err_code;
    }

    
    public String getErr_code_des() {
    
        return err_code_des;
    }

    
    public void setErr_code_des(String err_code_des) {
    
        this.err_code_des = err_code_des;
    }

    
    public String getOpenid() {
    
        return openid;
    }

    
    public void setOpenid(String openid) {
    
        this.openid = openid;
    }

    
    public String getIs_subscribe() {
    
        return is_subscribe;
    }

    
    public void setIs_subscribe(String is_subscribe) {
    
        this.is_subscribe = is_subscribe;
    }

    
    public String getTrade_type() {
    
        return trade_type;
    }

    
    public void setTrade_type(String trade_type) {
    
        this.trade_type = trade_type;
    }

    
    public String getBank_type() {
    
        return bank_type;
    }

    
    public void setBank_type(String bank_type) {
    
        this.bank_type = bank_type;
    }

    
    public String getTotal_fee() {
    
        return total_fee;
    }

    
    public void setTotal_fee(String total_fee) {
    
        this.total_fee = total_fee;
    }

    
    public String getFee_type() {
    
        return fee_type;
    }

    
    public void setFee_type(String fee_type) {
    
        this.fee_type = fee_type;
    }

    
    public String getCash_fee() {
    
        return cash_fee;
    }

    
    public void setCash_fee(String cash_fee) {
    
        this.cash_fee = cash_fee;
    }

    
    public String getCash_fee_type() {
    
        return cash_fee_type;
    }

    
    public void setCash_fee_type(String cash_fee_type) {
    
        this.cash_fee_type = cash_fee_type;
    }

    
    public String getCoupon_fee() {
    
        return coupon_fee;
    }

    
    public void setCoupon_fee(String coupon_fee) {
    
        this.coupon_fee = coupon_fee;
    }

    
    public String getCoupon_count() {
    
        return coupon_count;
    }

    
    public void setCoupon_count(String coupon_count) {
    
        this.coupon_count = coupon_count;
    }

    
    public String getCoupon_id_0() {
    
        return coupon_id_0;
    }

    
    public void setCoupon_id_0(String coupon_id_0) {
    
        this.coupon_id_0 = coupon_id_0;
    }

    
    public String getCoupon_fee_0() {
    
        return coupon_fee_0;
    }

    
    public void setCoupon_fee_0(String coupon_fee_0) {
    
        this.coupon_fee_0 = coupon_fee_0;
    }

    
    public String getTransaction_id() {
    
        return transaction_id;
    }

    
    public void setTransaction_id(String transaction_id) {
    
        this.transaction_id = transaction_id;
    }

    
    public String getOut_trade_no() {
    
        return out_trade_no;
    }

    
    public void setOut_trade_no(String out_trade_no) {
    
        this.out_trade_no = out_trade_no;
    }

    
    public String getAttach() {
    
        return attach;
    }

    
    public void setAttach(String attach) {
    
        this.attach = attach;
    }

    
    public String getTime_end() {
    
        return time_end;
    }

    
    public void setTime_end(String time_end) {
    
        this.time_end = time_end;
    }

    
    
    
}
